Convert Options struct into unit struct
authorKevin Yap <me@kevinyap.ca>
Sat, 22 Jul 2017 19:57:55 +0000 (12:57 -0700)
committerKevin Yap <me@kevinyap.ca>
Sat, 22 Jul 2017 20:44:47 +0000 (13:44 -0700)
Unit struct support was added in Docopt 0.8.1 via
docopt/docopt.rs#217. Fixes #4174.

Cargo.toml
src/bin/version.rs

index d7dca9fc21f6142a86ea3acc517cda83736c4ffe..24c6d070c591d68cfccdaa298da41bb36ddc75e5 100644 (file)
@@ -21,7 +21,7 @@ atty = "0.2"
 crates-io = { path = "src/crates-io", version = "0.11" }
 crossbeam = "0.2"
 curl = "0.4.6"
-docopt = "0.8"
+docopt = "0.8.1"
 env_logger = "0.4"
 error-chain = "0.10.0"
 filetime = "0.1"
index a97c0fc03002d0fa261af9155d85958e8f4c6268..f036def0367a3a394f85072922a71a84e7f328ec 100644 (file)
@@ -4,7 +4,7 @@ use cargo;
 use cargo::util::{CliResult, Config};
 
 #[derive(Deserialize)]
-pub struct Options {}
+pub struct Options;
 
 pub const USAGE: &'static str = "
 Show version information